package mapper;


import Message.entity.SetmealDish;
import Message.vo.DishItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;


public interface SetmealDishMapper {




    List<SetmealDish> SelectByid(Long id);

    void Delete(List<Long> ids);

    void insert(List<SetmealDish> setmealDishes);

    @Select("select sd.name, sd.copies, d.image, d.description " +
            "from setmeal_dish sd left join dish d on sd.dish_id = d.id " +
            "where sd.setmeal_id = #{setmealId}")
    List<DishItemVO> ListDishById(Long setmealId);
}
